package com.tuanzi.loan.business.service.product.product.impl;

import com.tuanzi.loan.business.entity.product.product.LoanApiInfo;
import com.tuanzi.loan.business.entity.product.product.LoanProductInfo;
import com.tuanzi.loan.business.repository.product.product.LoanApiInfoRepository;
import com.tuanzi.loan.business.service.product.product.LoanApiInfoService;
import com.tuanzi.loan.core.aspect.Debug;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: chenweijun
 * @Date: 2019/6/10 22:51
 * @Description:
 */
@Slf4j
@Debug
@Service
@Transactional
@Retryable(value = { RetryException.class })
public class LoanApiInfoServiceImpl implements LoanApiInfoService{

    @Autowired
    private LoanApiInfoRepository loanApiInfoRepository;

    @Override
    public List<LoanApiInfo> findAll() {
        return loanApiInfoRepository.findAll();
    }
}
